//
//  ViewController.m
//  LJEmailTextField
//
//  Created by liujinlong on 15/3/12.
//  Copyright (c) 2015年 com.ljl. All rights reserved.
//

#import "ViewController.h"
#import "LJEmailListView.h"

@interface ViewController ()

@property (nonatomic, strong) UITextField * textField;

@end

@implementation ViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.textField = [[UITextField alloc] initWithFrame:CGRectMake(20, 150, 250, 40)];
    self.textField.layer.borderWidth = 1;
    self.textField.layer.borderColor = [UIColor grayColor].CGColor;
    self.textField.layer.cornerRadius = 5;
    self.textField.returnKeyType = UIReturnKeyDone;
    [self.view addSubview:self.textField];
    
    LJEmailListView * emailTextField = [[LJEmailListView alloc] initWithTextFiled:self.textField];
    [self.view addSubview:emailTextField];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
